﻿@using KRM.Core
@model IEnumerable<KRM.Core.Library.ReviewReasons>
@{
    var user = (tblUser)ViewBag.user;
    var disable = user.HasPermission(Permissions.CanViewModerateReviews);
    var disabled = disable ? "disabled" : "";
    }
<div style="overflow: scroll; overflow-x: hidden; height: 220px">
    <table class="table table-fix table-checkbox">
        <tr>
            <th>Reason Name</th>
            <th>Positive</th>
            <th>Negative</th>
        </tr>
        @foreach (var item in Model)
        {
            
            <tr>
                <td>@item.ReasonName<input type="hidden" name="ReviewReasonID" value="@item.ReviewReasonID" /></td>
                <td>@Html.CheckBox("positive", (bool)item.Positive,new {disabled} )</td>
                <td>@Html.CheckBox("negative", (bool)item.Negative,new {disabled})</td>

            </tr>
        }
    </table>

</div>
